package com.hgxd.entity.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.hgxd.base.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 巡检管理
 * </p>
 *
 * @author fsd
 * @since 2023-10-18
 */
@Getter
@Setter
@ToString
@TableName("rb_inspection_management")
@ApiModel(value = "InspectionManagement对象", description = "巡检管理")
public class InspectionManagement extends BaseEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("任务名称")
    private String taskName;

    @ApiModelProperty("巡检人员")
    private String person;

//    @ApiModelProperty("巡检创建时间")
//    private LocalDateTime date;

    @ApiModelProperty("任务状态：执行中、未执行、已作废")
    private String status;

    @ApiModelProperty("任务创建人员")
    private String createTaskPerson;

    @ApiModelProperty("巡检方式：周期巡检")
    private String style;

    @ApiModelProperty("任务开始时间")
    @JsonFormat(shape=JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime taskStartTime;

    @ApiModelProperty("任务结束时间")
    @JsonFormat(shape=JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime taskEndTime;

    @ApiModelProperty("任务备注")
    private String comment;

//    @ApiModelProperty("是否删除：0未删除，1已删除")
//    private String isDelete;


}
